#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int i, sum = 0, num = 0, x;
	printf("input 10 numbers:");
	for (i = 0; i < 10; i++)
	{
		scanf("%d", &x);
		if (x >= 0) continue;
		sum += x; num++;
	}
	if (num)
		printf("num=%d,sum=%d", num, sum);
	else printf("num is 0");



	return 0;
}